<template>
<div class="public-common">
    <!--业务办理 && 失物招领-->
    <div class="public-title">失物招领列表</div>
    <div class="public-searchbox">
        <el-row>
            <el-col :span="6">
                <el-input placeholder="请输入内容" v-model="form.test" class="input-with-select"  size="mini" />
            </el-col>
            <el-col :span="18">
                <el-button type="primary" icon="el-icon-search" size="mini"  style="margin-left:10px;">搜索</el-button>
                <el-button type="success" size="mini"  icon="el-icon-edit-outline">新建</el-button>
                <el-button type="danger" size="mini"  icon="el-icon-delete">删除</el-button>
                <el-button type="danger" size="mini"  icon="el-icon-switch-button">注销</el-button>
            </el-col>
        </el-row>
    </div>
    <el-scrollbar class="public-scroll">
        <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
            type="selection"
            width="55" fixed="left">
            </el-table-column>
            <el-table-column
                label="车牌号">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>                
            <el-table-column
                label="注销标志">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="检查地点">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="检查时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="检查人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="检查结果">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>            
            <el-table-column
                label="整改措施">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="整改结果验证人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="整改结果验证时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>          
            <el-table-column
                label="操作" fixed="right">
                <template slot-scope="scope">
                    <el-button type="primary" size="mini">缴费</el-button>
                </template>
            </el-table-column>             
        </el-table>
    </el-scrollbar>
    <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
    </el-pagination>

    <!--dialog-->
    <el-dialog title="定查检查结果" :visible.sync="dialog.isVisible" width="60%" top="15vh">
            <el-form size="mini" label-width="150px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="车牌号">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.carids"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="检查时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="datetime"
                            format="yyyy-MM-dd HH:mm"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                            
                        </el-form-item>
                        <el-form-item label="检查结果">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.checkresult"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>  
                        <el-form-item label="检查地点">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="检查人">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.rummagers"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>                            
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="驾驶员">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.drivers"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        
                        <el-form-item label="整改措施">
                            <el-input type="textarea" v-model="dialog.test" :rows="2"></el-input>
                        </el-form-item>
                        <el-form-item label="整改验证时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="datetime"
                            format="yyyy-MM-dd HH:mm"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item label="整改验证人">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.rummagers"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                    </el-col>
                </el-row>
            </el-form>
            <div class="textcenter">
                <el-button type="primary">确定</el-button>  
                <el-button type="info" @click="dialog.isVisible = false">返回</el-button>
            </div>
    </el-dialog>
</div>
</template>
<script>
export default {
    data(){
        return {
            form:{
                test:''
            },
            tabledata:[],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            select:{
                carids:[],
                checkresult:[],
                identifiers:[],
                drivers:[],
                rummagers:[]
            },
            dialog:{
                isVisible:false,
                test:''
            }
        }
    },
    components:{
    },
    mounted(){
        
    },
    methods:{
        getValue(html){

        },
        handleChange(file, fileList){
            console.log("file",file)
        },
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>